package com.JinYuan.servlet;

import com.JinYuan.pojo.User;
import org.springframework.web.bind.annotation.*;

/**
 * @author 金园
 * @create 2022/5/9
 * @Description
 * @className testJson
 * @packageName com.JinYuan
 */
@RestController

@RequestMapping("/Test")
public class testJson {
    /*@RequestMapping("/springMVCJson")*/
    @RequestMapping("/springMVCJson")
    public void  springMVCJson(User user){
        System.out.println("执行了");
//        System.out.println(user.setId());
//        System.out.println(user.setName());
//        System.out.println(user.setGender());
//     return user;
        System.out.println(user);
    }

}
